package main

import (
	_ "WEB/routers"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
)

func init() {
	orm.RegisterDataBase("default", "mysql", "root:admin@tcp(127.0.0.1:3306)/taobao?charset=utf8", 30)
	//orm.RegisterModel(new(models.User),new(models.Store),new(models.Roles),new(models.Permission),new(models.Order),new(models.OrderItem),new(models.Menu),new(models.Keyword),new(models.GoodKind),new(models.Goods))
	beego.BConfig.WebConfig.Session.SessionOn = true
}

func main() {
	beego.Run();
}
